def my_log(logname):
    import logging
    logger = logging.getLogger(__name__)
    logger.setLevel(logging.INFO)
    logHandler = logging.FileHandler(logname + '.log', encoding='utf-8')
    logHandler.setLevel(logging.INFO)
    formats = logging.Formatter('%(asctime)s %(levelname)s: %(message)s',
                                datefmt='[%Y/%m/%d %I:%M:%S]')
    logHandler.setFormatter(formats)
    logger.addHandler(logHandler)
    return logger
